package com.aooci.ordercat.vo;

import java.io.Serializable;

import org.primefaces.model.SelectableDataModel;

import com.aooci.ordercat.domain.Item;
import com.aooci.ordercat.enums.OrderedItemType;

public class OrderedItemVo implements Serializable, SelectableDataModel<Object> {
	private static final long serialVersionUID = 1L;
	private int entityId;
	private Item item;
	private int count;
	private float unitPrice;
	private int modifiedCount;
	private float totalPrice;
	private OrderedItemType type;
	private String remark;
	private int sortGroup;
	private boolean first = false;
	public OrderedItemVo(int entityId, Item item, int count, float unitPrice, int modifiedCount,
			float totalPrice, OrderedItemType type, String remark,
			int sortGroup) {
		super();
		this.entityId = entityId;
		this.item = item;
		this.count = count;
		this.unitPrice = unitPrice;
		this.modifiedCount = modifiedCount;
		this.totalPrice = totalPrice;
		this.type = type;
		this.remark = remark;
		this.sortGroup = sortGroup;
	}
	/**
	 * @return the entityId
	 */
	public int getEntityId() {
		return entityId;
	}
	/**
	 * @param entityId the entityId to set
	 */
	public void setEntityId(int entityId) {
		this.entityId = entityId;
	}
	/**
	 * @return the item
	 */
	public Item getItem() {
		return item;
	}
	/**
	 * @param item the item to set
	 */
	public void setItem(Item item) {
		this.item = item;
	}
	/**
	 * @return the count
	 */
	public int getCount() {
		return count;
	}
	/**
	 * @param count the count to set
	 */
	public void setCount(int count) {
		this.count = count;
	}
	/**
	 * @return the modifiedCount
	 */
	public int getModifiedCount() {
		return modifiedCount;
	}
	/**
	 * @param modifiedCount the modifiedCount to set
	 */
	public void setModifiedCount(int modifiedCount) {
		this.modifiedCount = modifiedCount;
	}
	/**
	 * @return the totalPrice
	 */
	public float getTotalPrice() {
		return totalPrice;
	}
	/**
	 * @param totalPrice the totalPrice to set
	 */
	public void setTotalPrice(float totalPrice) {
		this.totalPrice = totalPrice;
	}

	/**
	 * @return the type
	 */
	public OrderedItemType getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(OrderedItemType type) {
		this.type = type;
	}
	/**
	 * @return the remark
	 */
	public String getRemark() {
		return remark;
	}
	/**
	 * @param remark the remark to set
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}
	/**
	 * @return the sortGroup
	 */
	public int getSortGroup() {
		return sortGroup;
	}
	/**
	 * @param sortGroup the sortGroup to set
	 */
	public void setSortGroup(int sortGroup) {
		this.sortGroup = sortGroup;
	}
	/**
	 * @return the first
	 */
	public boolean isFirst() {
		return first;
	}
	/**
	 * @param first the first to set
	 */
	public void setFirst(boolean first) {
		this.first = first;
	}
	@Override
	public Object getRowData(String arg0) {
		// TODO Auto-generated method stub
		return null;
	}
	@Override
	public Object getRowKey(Object arg0) {
		// TODO Auto-generated method stub
		return null;
	}
	/**
	 * @return the unitPrice
	 */
	public float getUnitPrice() {
		return unitPrice;
	}
	/**
	 * @param unitPrice the unitPrice to set
	 */
	public void setUnitPrice(float unitPrice) {
		this.unitPrice = unitPrice;
	}
}
